<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>小程序备案</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  {include file="public/css"/}
	<script src="/static/admin/js/address3Wechat.js?v=2023"></script>
	<style>
		.layui-form-item .layui-input-inline {width: 300px}
	</style>
</head>
<body>
  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-card layui-col-md12">
				<div class="layui-card-header"><i class="fa fa-cog"></i> 小程序备案<i class="layui-icon layui-icon-close" style="font-size:18px;font-weight:bold;cursor:pointer" onclick="closeself()"></i></div>
				<div class="layui-card-body" pad15>
					<blockquote class="layui-elem-quote" style="color:#333">
						申请小程序备案之前，请确保前置条件已经完成：<br>
						1.小程序名称、图标、描述等小程序基本信息已填写完成。<br>
						2.小程序至少存在一个审核通过的类目。
						3.开放平台权限集需要授权156，权限集修改后需要重新绑定小程序
					</blockquote>
					<div class="layui-form form-label-w8" lay-filter="">
						备案主体信息<hr/>
<!--						<div class="layui-form-item">-->
<!--							<label class="layui-form-label">主体类型：</label>-->
<!--							<div class="layui-input-inline">-->
<!--								<input type="radio" name="info[style]" value="1" title="样式1" {if !$info['id'] || $info['style']==1}checked{/if} lay-filter="diandaSwitchMulti">-->
<!--								<input type="radio" name="info[style]" value="2" title="样式2" {if $info['style']==2}checked{/if} lay-filter="diandaSwitchMulti">-->
<!--							</div>-->
<!--						</div>-->
<!--						<div diandaSwitchMulti="info[style]" data-val="1" {if $info['style'] != 1} style="display:none"{/if}>-->
<!--							<img src="/static/img/sign-1.png" width="200">-->
<!--						</div>-->
						<div class="layui-form-item">
							<label class="layui-form-label"><span class="redstar">*</span>选择地区：</label>
							<div class="layui-input-inline" style="width:150px">
								<select name="info[province]" id="province" lay-filter="province"></select>
							</div>
							<div class="layui-input-inline" style="width:150px">
								<select name="info[city]" id="city" lay-filter="city"></select>
							</div>
							<div class="layui-input-inline" style="width:150px">
								<select name="info[district]" id="district" ></select>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"><span class="redstar">*</span>通讯地址：</label>
							<div class="layui-input-inline">
								<input type="text" name="info[address]" value="{$info['address']}" class="layui-input"/>
							</div>
							<div class="layui-form-mid layui-word-aux">通信地址需要精确到具体门牌号，如果没有门牌号请在下方“备注”说明情况。通讯地址，必须属于备案省市区，地址开头的省市区不用填入，例如：通信地址为“北京市朝阳区高碑店路181号1栋12345室”时，只需要填写 `"高碑店路181号1栋12345室"` 即可</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">备注 (选填)：</label>
							<div class="layui-input-inline">
								<input type="text" name="info[comment]" value="{$info['comment']}" class="layui-input"/>
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>

						<div class="layui-form-item">
							<label class="layui-form-label"><span class="redstar">*</span>主办者性质：</label>
							<div class="layui-input-inline" style="width:300px">
								<select name="info[type]" lay-filter="" lay-search>
									{foreach $SubjectTypes as $item}
									<option value="{$item.type}">{$item.name}</option>
									{/foreach}
								</select>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"><span class="redstar">*</span>证件类型：</label>
							<div class="layui-input-inline" style="width:300px">
								<select name="info[certificate_type]" lay-filter="" lay-search>
									{foreach $CertificateTypes as $item}
									<option value="{$item.type}">{$item.name}</option>
									{/foreach}
								</select>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"><span class="redstar">*</span>上传营业执照：</label>
							<input type="hidden" name="info[certificate_photo]" id="certificate_photo" lay-verType="tips" class="layui-input" value="{$info.certificate_photo}">
							<button style="float:left;" type="button" class="layui-btn layui-btn-primary" upload-input="certificate_photo" upload-preview="certificate_photoPreview" onclick="uploader(this)">上传图片</button>
							<div class="layui-form-mid layui-word-aux" style="margin-left:10px">大小不超过2M</div>
							<div id="certificate_photoPreview" class="picsList-class-padding">
								<div class="layui-imgbox" style="width:100px;"><div class="layui-imgbox-img"><img src="{$info.certificate_photo}"/></div></div>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">企业名称：</label>
							<div class="layui-input-inline">
								<input type="text" name="info[name]" value="{$info['name']}" class="layui-input"/>
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">证件住所：</label>
							<div class="layui-input-inline">
								<input type="text" name="info[certificate_address]" value="{$info['certificate_address']}" class="layui-input"/>
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">营业执照号：</label>
							<div class="layui-input-inline">
								<input type="text" name="info[certificate_number]" value="{$info['certificate_number']}" class="layui-input"/>
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>

						主体负责人信息<hr/>
						<div class="layui-form-item">
							<label class="layui-form-label">负责人姓名：</label>
							<div class="layui-input-inline">
								<input type="text" name="principal_info[name]" value="{$principal_info['name']}" class="layui-input" lay-verify="required"/>
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">手机号：</label>
							<div class="layui-input-inline">
								<input type="text" name="principal_info[mobile]" value="{$principal_info['mobile']}" class="layui-input" lay-verify="required"/>
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">应急手机号：</label>
							<div class="layui-input-inline">
								<input type="text" name="principal_info[emergency_contact]" value="{$principal_info['emergency_contact']}" class="layui-input" lay-verify="required"/>
							</div>
							<div class="layui-form-mid layui-word-aux">不能与联系手机相同</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">邮箱：</label>
							<div class="layui-input-inline">
								<input type="text" name="principal_info[email]" value="{$principal_info['email']}" class="layui-input" lay-verify="required"/>
							</div>
							<div class="layui-form-mid layui-word-aux" ></div>
						</div>

						<div class="layui-form-item">
							<label class="layui-form-label"><span class="redstar">*</span>证件类型：</label>
							<div class="layui-input-inline" style="width:300px">
								<select name="principal_info[certificate_type]" lay-filter="" lay-search>
									{foreach $CertificateTypes as $item}
									<option value="{$item.type}">{$item.name}</option>
									{/foreach}
								</select>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"><span class="redstar">*</span>身份证人像面：</label>
							<input type="hidden" name="principal_info[certificate_photo_front]" id="certificate_photo_front" lay-verType="tips" class="layui-input" value="{$principal_info.certificate_photo_front}">
							<button style="float:left;" type="button" class="layui-btn layui-btn-primary" upload-input="certificate_photo_front" upload-preview="certificate_photo_frontPreview" onclick="uploader(this)">上传图片</button>
							<div class="layui-form-mid layui-word-aux" style="margin-left:10px">大小不超过2M，辨率不低于720*1280，必须为彩色，需在有效期内。</div>
							<div id="certificate_photo_frontPreview" class="picsList-class-padding">
								<div class="layui-imgbox" style="width:100px;"><div class="layui-imgbox-img"><img src="{$principal_info.certificate_photo_front}"/></div></div>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"><span class="redstar">*</span>身份证国徽面：</label>
							<input type="hidden" name="principal_info[certificate_photo_back]" id="certificate_photo_back" lay-verType="tips" class="layui-input" value="{$principal_info.certificate_photo_back}">
							<button style="float:left;" type="button" class="layui-btn layui-btn-primary" upload-input="certificate_photo_back" upload-preview="certificate_photo_backPreview" onclick="uploader(this)">上传图片</button>
							<div class="layui-form-mid layui-word-aux" style="margin-left:10px">大小不超过2M，辨率不低于720*1280，必须为彩色，需在有效期内。</div>
							<div id="certificate_photo_backPreview" class="picsList-class-padding">
								<div class="layui-imgbox" style="width:100px;"><div class="layui-imgbox-img"><img src="{$principal_info.certificate_photo_back}" /></div></div>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">证件号码：</label>
							<div class="layui-input-inline">
								<input type="text" name="principal_info[certificate_number]" value="{$principal_info['certificate_number']}" class="layui-input" />
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"><span class="redstar">*</span>证件有效期：</label>
							<div class="layui-input-inline" style="width:100px">
								<input type="text" name="principal_info[certificate_validity_date_start]" id="certificate_validity_date_start" lay-verify="required" lay-verType="tips" class="layui-input" value="{$principal_info['certificate_validity_date_start']}">
							</div>
							<div class="layui-form-mid">至</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="text" name="principal_info[certificate_validity_date_end]" id="certificate_validity_date_end" class="layui-input" value="{$principal_info['certificate_validity_date_end']}" {if $principal_info['certificate_validity_date_cq']==1}style="display:none"{/if}>
							</div>
							<input type="checkbox" value="长期" title="长期" name="principal_info[certificate_validity_date_cq]" value="1" {if $principal_info['certificate_validity_date_cq']==1}checked{/if} lay-filter="certificate_validity_date_cq"/>
						</div>
						法人信息<hr/>
						<div class="layui-form-mid layui-word-aux">主体负责人信息与法人不一致时，需完善法人信息。</div>
						<div class="layui-form-item">
							<label class="layui-form-label">法人姓名：</label>
							<div class="layui-input-inline">
								<input type="text" name="legal_person_info[name]" value="{$legal_person_info['name']}" class="layui-input" />
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">法人身份证号：</label>
							<div class="layui-input-inline">
								<input type="text" name="legal_person_info[certificate_number]" value="{$legal_person_info['certificate_number']}" class="layui-input" />
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">法人授权书：</label>
							<input type="hidden" name="principal_info[authorization_letter]" id="authorization_letter" lay-verType="tips" class="layui-input" value="{$principal_info.authorization_letter}">
							<button style="float:left;" type="button" class="layui-btn layui-btn-primary" upload-input="authorization_letter" upload-preview="authorization_letterPreview" onclick="uploader(this)">上传图片</button>
							<div class="layui-form-mid layui-word-aux" style="margin-left:10px">大小不超过2M，当主体负责人不是法人时需要主体负责人授权书</div>
							<div id="authorization_letterPreview" class="picsList-class-padding">
								<div class="layui-imgbox" style="width:100px;"><div class="layui-imgbox-img"><img src="{$principal_info.authorization_letter}" /></div></div>
							</div>
						</div>

						微信小程序基础信息<hr/>
						<div class="layui-form-item">
							<label class="layui-form-label">服务内容标识：<!--array--></label>
							<div class="layui-input-inline" style="width:400px">
								<select name="base_info[service_content_types]" id="cid" xm-select="selectCid" xm-select-max="5" xm-select-search >
									<option value="">--请选择--</option>
									{foreach $ContentTypes as $cv}
									<option value="{$cv['type']}" {if in_array($cv['type'],$base_info['service_content_types'])}selected{/if}>{$cv['name']}</option>
									{foreach $cv['child'] as $k=>$v}
									{if $k < count($cv['child'])-1}
									<option value="{$v['type']}" {if in_array($v['type'],$base_info['service_content_types'])}selected{/if}>&nbsp;&nbsp;&nbsp;&nbsp;├ {$v['name']}</option>
									{else}
									<option value="{$v['type']}" {if in_array($v['type'],$base_info['service_content_types'])}selected{/if}>&nbsp;&nbsp;&nbsp;&nbsp;└ {$v['name']}</option>
									{/if}
									{/foreach}
									{/foreach}
								</select>
							</div>
							<div class="layui-form-mid layui-word-aux" >小程序服务内容类型数目不能超过5个</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">互联网信息服务前置审批项：</label>
							<div class="layui-input-block" style="width:1000px;">
								<table class="layui-table object_table" style="width:700px" id="object_table">
									<thead>
									<tr>
										<th>前置审批项</th>
										<th>前置审批号</th>
										<th>前置审批文件</th>
										<th>操作</th>
									</tr>
									</thead>
									{if $baseinfo['nrlx_details_data']}
									{foreach $baseinfo['nrlx_details_data'] as $k=>$item}
									<tr class="choose-tr-list">
										<td class="xuhao">
											<select name="nrlx_details[type][]" class="layui-form-select">
												{foreach $NrlxTypes as $v}
												<option value="{$v.type}" {if $item.type == $v.type}selected{/if}>{$v.name}</option>
												{/foreach}
											</select>
										</td>
										<td>
											<input type="text" name="nrlx_details[code][]" placeholder="前置审批号" value="{$item.code}" class="layui-input"/>
										</td>
										<td>
											<input type="text" name="nrlx_details[media][]" placeholder="" value="{$item.media}" class="layui-input"/><!--todo-->
										</td>
										<td><input type="hidden" name="" value=""><button type="button" class="layui-btn layui-btn-sm layui-btn-primary" onclick="delInviteCashbak(this)">删除</button></td>
									</tr>
									{/foreach}
									{else}
									<tr class="choose-tr-list">
										<td class="xuhao">
											<select name="nrlx_details[type][]" class="layui-form-select">
												{foreach $NrlxTypes as $v}
												<option value="{$v.type}">{$v.name}</option>
												{/foreach}
											</select>
										</td>
										<td>
											<input type="text" name="nrlx_details[code][]" placeholder="前置审批号" value="" class="layui-input"/>
										</td>
										<td>
											<input type="text" name="nrlx_details[media][]" placeholder="" value="" class="layui-input"/>
										</td>
										<td><input type="hidden" name="" value=""><button type="button" class="layui-btn layui-btn-sm layui-btn-primary" onclick="delInviteCashbak(this)">删除</button></td>
									</tr>
									{/if}
									<tr class="choose-tr-add">
										<td colspan="7" align="center"><button type="button" class="layui-btn layui-btn-sm layui-btn-primary" onclick="addInviteCashbak()">添加</button></td>
									</tr>
								</table>
								<script>

									function addInviteCashbak(){
										var tr = '<tr class="choose-tr-list">\n' +
												'\t\t\t\t\t\t\t\t\t\t<td class="xuhao">\n' +
												'\t\t\t\t\t\t\t\t\t\t\t<select name="levelid[]">\n';
										{foreach $NrlxTypes as $level}
										tr += '\t\t\t\t\t\t\t\t\t\t\t\t<option value="{$level.type}">{$level.name}</option>\n';
										{/foreach}
											tr += '\t\t\t\t\t\t\t\t\t\t\t</select>\n' +
													'\t\t\t\t\t\t\t\t\t\t</td>\n' +
													'<td>\n' +
													'\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="nrlx_details[code][]" placeholder="前置审批号" value="" class="layui-input"/>\n' +
													'\t\t\t\t\t\t\t\t\t\t</td>\n' +
													'\t\t\t\t\t\t\t\t\t\t<td>\n' +
													'\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="nrlx_details[media][]" placeholder="" value="" class="layui-input"/>\n' +
													'\t\t\t\t\t\t\t\t\t\t</td>' +
													'<td><input type="hidden" name="" value=""><button type="button" class="layui-btn layui-btn-sm layui-btn-primary" onclick="delInviteCashbak(this)">删除</button></td></tr>';
											$('#object_table').find('.choose-tr-add').before(tr);
											layui.form.render();
										}
										function delInviteCashbak(obj){
											$(obj).closest('.choose-tr-list').remove();
										}
								</script>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">备注（选填）：</label>
							<div class="layui-input-inline">
								<input type="text" name="base_info[comment]" value="{$base_info['comment']}" class="layui-input"/>
							</div>
						</div>

						小程序管理员<hr/><!--需扫码完成小程序管理员人脸核身。核验照片背景需白色或接近浅色，核验人不能裸露上半身，不能戴帽子、耳机、口罩等遮挡面部的物品-->
						<div class="layui-form-item">
							<label class="layui-form-label">负责人姓名：</label>
							<div class="layui-input-inline">
								<input type="text" name="principal_info2[name]" value="{$principal_info2['name']}" class="layui-input" lay-verify="required"/>
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">手机号：</label>
							<div class="layui-input-inline">
								<input type="text" name="principal_info2[mobile]" value="{$principal_info2['mobile']}" class="layui-input" lay-verify="required"/>
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">应急手机号：</label>
							<div class="layui-input-inline">
								<input type="text" name="principal_info2[emergency_contact]" value="{$principal_info2['emergency_contact']}" class="layui-input" lay-verify="required"/>
							</div>
							<div class="layui-form-mid layui-word-aux">不能与联系手机相同</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">邮箱：</label>
							<div class="layui-input-inline">
								<input type="text" name="principal_info2[email]" value="{$principal_info2['email']}" class="layui-input" lay-verify="required"/>
							</div>
							<div class="layui-form-mid layui-word-aux" ></div>
						</div>

						<div class="layui-form-item">
							<label class="layui-form-label"><span class="redstar">*</span>证件类型：</label>
							<div class="layui-input-inline" style="width:300px">
								<select name="principal_info2[certificate_type]" lay-filter="" lay-search>
									{foreach $CertificateTypes as $item}
									<option value="{$item.type}">{$item.name}</option>
									{/foreach}
								</select>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"><span class="redstar">*</span>身份证人像面：</label>
							<input type="hidden" name="principal_info2[certificate_photo_front]" id="certificate_photo_front2" lay-verType="tips" class="layui-input" value="{$principal_info2.certificate_photo_front2}">
							<button style="float:left;" type="button" class="layui-btn layui-btn-primary" upload-input="certificate_photo_front2" upload-preview="certificate_photo_front2Preview" onclick="uploader(this)">上传图片</button>
							<div class="layui-form-mid layui-word-aux" style="margin-left:10px">大小不超过2M，辨率不低于720*1280，必须为彩色，需在有效期内。</div>
							<div id="certificate_photo_front2Preview" class="picsList-class-padding">
								<div class="layui-imgbox" style="width:100px;"><div class="layui-imgbox-img"><img src="{$principal_info2.certificate_photo_front2}"/></div></div>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"><span class="redstar">*</span>身份证国徽面：</label>
							<input type="hidden" name="principal_info2[certificate_photo_back]" id="certificate_photo_back2" lay-verType="tips" class="layui-input" value="{$principal_info2.certificate_photo_back2}">
							<button style="float:left;" type="button" class="layui-btn layui-btn-primary" upload-input="certificate_photo_back2" upload-preview="certificate_photo_back2Preview" onclick="uploader(this)">上传图片</button>
							<div class="layui-form-mid layui-word-aux" style="margin-left:10px">大小不超过2M，辨率不低于720*1280，必须为彩色，需在有效期内。</div>
							<div id="certificate_photo_back2Preview" class="picsList-class-padding">
								<div class="layui-imgbox" style="width:100px;"><div class="layui-imgbox-img"><img src="{$principal_info2.certificate_photo_back2}" /></div></div>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">证件号码：</label>
							<div class="layui-input-inline">
								<input type="text" name="principal_info2[certificate_number]" value="{$principal_info2['certificate_number']}" class="layui-input" />
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label"><span class="redstar">*</span>证件有效期：</label>
							<div class="layui-input-inline" style="width:100px">
								<input type="text" name="principal_info2[certificate_validity_date_start]" id="certificate_validity_date_start2" lay-verify="required" lay-verType="tips" class="layui-input" value="{$principal_info2['certificate_validity_date_start']}">
							</div>
							<div class="layui-form-mid">至</div>
							<div class="layui-input-inline" style="width:100px">
								<input type="text" name="principal_info2[certificate_validity_date_end]" id="certificate_validity_date_end2" class="layui-input" value="{$principal_info2['certificate_validity_date_end']}" {if $principal_info2['certificate_validity_date_cq']==1}style="display:none"{/if}>
							</div>
							<input type="checkbox" value="长期" title="长期" name="principal_info2[certificate_validity_date_cq]" value="1" {if $principal_info2['certificate_validity_date_cq']==1}checked{/if} lay-filter="certificate_validity_date_cq2"/>
						</div>

						其他备案媒体材料<hr/>
						<div class="layui-form-item">
							<label class="layui-form-label">互联网信息服务<br>承诺书：</label>
							<input type="hidden" name="icp_materials[commitment_letter]" id="commitment_letter" lay-verType="tips" class="layui-input" value="{$icp_materials.commitment_letter}">
							<button style="float:left;" type="button" class="layui-btn layui-btn-primary" upload-input="commitment_letter" upload-preview="commitment_letterPreview" onclick="uploader(this)">上传图片</button>
							<div class="layui-form-mid layui-word-aux" style="margin-left:10px">大小不超过2M，支持 .jpg .jpeg .png 格式。</div>
							<div id="commitment_letterPreview" class="picsList-class-padding">
								<div class="layui-imgbox" style="width:100px;"><div class="layui-imgbox-img"><img src="{$icp_materials.commitment_letter}"/></div></div>
							</div>
						</div>


						<div class="layui-form-item">
							<label class="layui-form-label"></label>
							<div class="layui-input-block">
								<button class="layui-btn" lay-submit lay-filter="formsubmit">提 交</button>
							</div>
						</div>
					</div>
				</div>
      </div>
    </div>
  </div>
	{include file="public/js"/}
	<script>

		var formSelects = layui.formSelects;
	address3Wechat('province','city','district',"{$info['province']}","{$info['city']}","{$info['district']}");
	layui.form.on('radio(wxpay_type)', function(data){
		if(data.value == '0'){
			$('#wxpay_type1set').hide();
			$('#wxpay_type0set').show();
		}else{
			$('#wxpay_type1set').show();
			$('#wxpay_type0set').hide();
		}
	})

		layui.laydate.render({
			elem: '#certificate_validity_date_start',
			type: 'date'
		});
		layui.laydate.render({
			elem: '#certificate_validity_date_end',
			type: 'date'
		});
		layui.laydate.render({
			elem: '#certificate_validity_date_start2',
			type: 'date'
		});
		layui.laydate.render({
			elem: '#certificate_validity_date_end2',
			type: 'date'
		});

		layui.form.on('checkbox(certificate_validity_date_cq)',function(data){
			if(data.elem.checked){
				$('#certificate_validity_date_end').hide();
			}else{
				$('#certificate_validity_date_end').show();
			}
		})
		layui.form.on('checkbox(certificate_validity_date_cq2)',function(data){
			if(data.elem.checked){
				$('#certificate_validity_date_end2').hide();
			}else{
				$('#certificate_validity_date_end2').show();
			}
		})
	layui.form.on('submit(formsubmit)', function(obj){
		var field = obj.field
		$.post('',field,function(data){
			dialog(data.msg,data.status,data.url);
		})
	})
  </script>
	{include file="public/copyright"/}
</body>
</html>